import request from "@/utils/request";
// 引入ts接口
import type { loginForm, loginResponseData } from "./type"
enum API {
    login_url = "/user/login",
    userinfo_url = "/user/getUserInfo"
}

export const reqLogin = (data: loginForm) => {
    return request.post<any, loginResponseData>(API.login_url, data)
}
// 获取用户数据
export const reqUserInfo = (data: any) => {
    return request.get(API.userinfo_url, data)
}

// 获取用户数据
export const addUser = (data: any) => {
    return request.get(API.userinfo_url, data)
}
